package com.accelstack.cmp.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 创建用户请求DTO
 */
@Data
@Schema(description = "创建用户请求")
public class UserCreateRequest {
    
    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名", required = true, example = "admin")
    private String username;
    
    @Email(message = "邮箱格式不正确")
    @Schema(description = "邮箱", example = "admin@tongjie.com")
    private String email;
    
    @Schema(description = "描述")
    private String description;
}

